const app = getApp()

Page({
  data: {
    home: 'home',
    title: 'hello',
    list: [
      'a',
      'b',
      'c'
    ]
  },
  
  onReady() {
    console.log(app.info.msg)

    app.changeInfo()

    console.log(app.info.msg)
  },

  handleBindTap() {
    wx.navigateTo({
      url: '/pages/detail/detail',
    })
    // wx.switchTab({
    //   url: '/pages/detail/detail',
    // })
    // wx.redirectTo({
    //   url: '/pages/detail/detail',
    // })
  },

  handleTap() {
    this.setData({
      title: 'world'
    })
  }
})